package day0309;

public class Person {
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) throws AgeExcption {
        if (age>100 ||age<0){
            throw new AgeExcption();
        }
        this.age = age;
    }
}
